<template>
  <div> ref_$parent</div>
  <el-button @click="handler">借钱 {{ money }}</el-button>
  <hr>
  <action_2_9_6_ref_parent_main ref="main"></action_2_9_6_ref_parent_main>
  <hr>
  <action_2_9_6_ref_parent_echo ></action_2_9_6_ref_parent_echo>

</template>
<script setup>
import {ref} from "vue";

let money = ref(20000)
const handler = () => {
  money.value += 100;
  main.value.money -= 100;
  main.value.fly();
}
let main = ref()

defineExpose({
  money
})
import Action_2_9_6_ref_parent_main from "@/views/inAction/action_2/action_2_9_6_ref_parent_main.vue";
import Action_2_9_6_ref_parent_echo from "@/views/inAction/action_2/action_2_9_6_ref_parent_echo.vue";
</script>

<style scoped>

</style>
